package com.rika.service.impl;

import com.rika.dao.ScmUserDao;
import com.rika.pojo.ScmUser;
import com.rika.service.ScmUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class ScmUserServiceImpl implements ScmUserService {
    @Resource
    private ScmUserDao scmUserDao;

    @Override
    public ScmUser selectByAccount(String account) {
        return scmUserDao.selectByAccount(account);
    }

    @Override
    public Integer countAll() {
        return scmUserDao.countAll();
    }

    @Override
    public List<ScmUser> findAll(Map<String, Object> params) {
        return scmUserDao.findAll(params);
    }

    @Override
    public void deleteAccount(String account) {
        scmUserDao.deleteAccount(account);
    }

    @Override
    public List getAll(Map<String, Object> params) {
        return scmUserDao.getAll(params);
    }

    @Override
    public Integer getAllcount() {
        return scmUserDao.getAllcount();
    }

    @Override
    public void addScmUser(ScmUser scmUser) {
        scmUserDao.addScmUser(scmUser);
    }

    @Override
    public void updateScmUser(ScmUser scmUser) {
        scmUserDao.updateScmUser(scmUser);
    }

    @Override
    public List<ScmUser> selectAccountByName(String name) {
        return scmUserDao.selectAccountByName(name);
    }
}
